<template>
	<view class="evaluation-input">
		<input v-model="replyText" class="input" type="text" ref="input" :focus="isFocus" :adjust-position="true" @blur="$emit('onInputBlur')">
		<button class="submit-btn" :disabled="!replyText.length" @click="$emit('submitReply',replyText)">发送</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isFocus: false,
				replyText:'',
			}
		},
		methods:{
			clear(){
				this.replyText = '';
			}
		}
	}
</script>

<style scoped lang="scss">
	@import "./evaluationInput.scss";
</style>
